/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ibmmodel3;

/**
 *
 * @author mwh
 */
public class Alignment {

    final int source;
    final int target;


    public Alignment(int source, int target) {
        this.source = source;
        this.target = target;
    }


    @Override
    public String toString() {
        return source + " -> " + target;
    }


    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Alignment other = (Alignment) obj;
        if (this.source != other.source) {
            return false;
        }
        if (this.target != other.target) {
            return false;
        }
        return true;
    }


    @Override
    public int hashCode() {
        int hash = 7;
        hash = 11 * hash + this.source;
        hash = 11 * hash + this.target;
        return hash;
    }
    
    
    
}
